import java.awt.Graphics;
import java.awt.Panel;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;


public class TitlePanelAWT extends Panel
{
	private static final long serialVersionUID = 1L;
	
	public TitlePanelAWT()
	{
		this.setBounds(0, 30, 640, 50);
		//this.repaint();
	}
	
	public void paint(Graphics g)
	{
		try 
		{
			BufferedImage title = ImageIO.read(new File("res\\banner.png"));
			g.drawImage(title,0 ,0, this);
		} 
		catch (IOException e) {}
	}
}
